Vpa.doc.Constructor = function(cmt){
    Vpa.apply(this,{
        isValid : true,
        description : "",
        params : [],
        isIgnored : false,
        isPrivate : false,
        href : cmt.sourceHref,
        html_filename : cmt.sourceFileName
    });
    var tag = cmt.getTag("constructor");
    if(!tag)
        this.isValid = false;
    else
        this._init(tag,cmt);
};
Vpa.doc.Constructor.prototype = {
    _init : function(tag, cmt){
        if(this.description == "")
            this.description = tag.description;
        var paramTags = cmt.getTags("param");
        for(var i=0,len=paramTags.length;i<len;i++) {
            var param = paramTags[i];
            this.params.push(new Vpa.doc.Param(paramTags[i]));
        }
        if(cmt.getTag("ignore"))
            this.isIgnored = true;
        if(cmt.getTag("private"))
            this.isPrivate = true;
    },
    
    addInfo : function(cmt){
        var tag = cmt.getTag("constructor");
        if(!tag)
            return;
        this.isValid = true;
        this._init(tag, cmt);
    }
};